ComponentOne TreeView for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.C1Schedule Namespace / MappingCollectionBase<T> Class / IdMapping Property

In This Topic
    IdMapping Property (MappingCollectionBase<T>)
    In This Topic
    Returns MappingInfo object for the BasePersistableObject.Id property. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the BasePersistableObject.Id property to be bound to the appropriate field in the data source.
    Syntax
    'Declaration
     
    Public Property IdMapping As MappingInfo
    public MappingInfo IdMapping {get; set;}
    Remarks
    Each object derived from BasePersistableObject is identified by either Id or Index property. To allow data to be correctly restored from your data sources you should specify mapping either for the IdMapping or for the IndexMapping. It makes sense in case if you bind to your data storages of Resources, Labels, Contacts or Categories. C1Schedule saves only Ids or Indexes of these objects in AppointmentSorage. If there is no mapping for IdMapping or IndexMapping, C1Schedule won't be able to identify Appointment's properties correctly in storages initialized by your data.
    See Also